package com.adapter.pattern.adapter;

import com.adapter.pattern.domain.ResultMsg;
import com.adapter.pattern.service.SignService;

/**
 * @author cc
 * @classname LoginForQQAdapter
 * @description TODO
 * @date 2022/3/28 15:38
 */
public class LoginForQQAdapter extends SignService implements LoginAdapter {
    @Override
    public boolean support(Object adapter) {
        return adapter instanceof LoginForQQAdapter;
    }

    @Override
    public ResultMsg login(String id, Object adapter) {
        super.register(id, null);
        return super.login(id, null);
    }
}
